package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.service.exception.BusinessRuntimeException;
import lombok.extern.slf4j.Slf4j;

@Service
@Slf4j
public class UserServiceImpl implements UserService {
    @Override
    public boolean login(String username, String password) {
        if ("longnaode".equalsIgnoreCase(username)&& "123".equals(password)){
            log.debug("登录成功");
            return true;
        }else {
            throw new BusinessRuntimeException("登录失败");
        }

    }
}
